package views
{
	import flash.text.*;
	
	import qnx.ui.listClasses.AlternatingCellRenderer;
	import qnx.ui.text.Label;
	import qnx.ui.skins.*;
	
	import skins.*;
	
	public class TabBarCellRenderer extends AlternatingCellRenderer
	{
		private var lbl:Label;
		public function TabBarCellRenderer()
		{
			super();
			
			setSkin(NavigatorSkin);
			setFonts();
		}
		
		private function setFonts():void
		{
			var selectedFont:TextFormat =   new TextFormat("Courier New", 18, 0xFFFFFF);
			selectedFont.align = TextFormatAlign.CENTER;
			var unselectedFont:TextFormat = new TextFormat("Myriad Pro", 18, 0x0C0E10);
			unselectedFont.align = TextFormatAlign.CENTER;
			
			setTextFormatForState(unselectedFont, SkinStates.UP);
			setTextFormatForState(selectedFont, SkinStates.DOWN);
			setTextFormatForState(selectedFont, SkinStates.SELECTED);
			setTextFormatForState(unselectedFont, SkinStates.DISABLED);
		}
	}
}